import Taro, { Component } from '@tarojs/taro'
import { View, Button, Text } from '@tarojs/components'
import { observer, inject } from '@tarojs/mobx'
import { AtIcon, AtInput } from 'taro-ui'
import './profitRecord.scss'


@inject('counterStore')
@observer
class ProfitRecord extends Component {

    config = {
        navigationBarTitleText: '收益记录',
        navigationBarTextStyle: 'black',
        navigationBarBackgroundColor: '#FFF',
    }
    constructor() {
        super(...arguments)
        this.state = {
            value: '',
            icon: require('../../img/profitRecord.png'),
        }
    }
    handleChange = (value) => {
        this.setState({
            value
        })
    }
    componentWillMount() {
        console.log('componentWillMount----');
    }

    componentWillReact() {
        console.log('componentWillReact')
    }

    componentDidMount() { }

    componentWillUnmount() { }

    componentDidShow() { }

    componentDidHide() { }
    render() {
        const { counterStore: { counter } } = this.props
        const { icon } = this.state;
        return (
            <View className='profitRecord-page'>
                <View className="table">
                    <View className="title">3月收益：¥5680</View>
                    <View className="cell">
                        <View>
                            <label></label>
                            <label>订单数</label>
                            <label>销售额</label>
                            <label>提成</label>
                        </View>
                        <View>
                            <label>团长收益</label>
                            <label>60</label>
                            <label>50000</label>
                            <label>5000</label>
                        </View>
                        <View>
                            <label>分销渠道</label>
                            <label>/</label>
                            <label>50000</label>
                            <label>5000</label>
                        </View>
                        <View>
                            <label>推广提成</label>
                            <label>/</label>
                            <label>50000</label>
                            <label>5000</label>
                        </View>
                    </View>
                </View>

                <View className="table">
                    <View className="title">4月收益：¥5680</View>
                    <View className="cell">
                        <View>
                            <label></label>
                            <label>订单数</label>
                            <label>销售额</label>
                            <label>提成</label>
                        </View>
                        <View>
                            <label>团长收益</label>
                            <label>60</label>
                            <label>50000</label>
                            <label>5000</label>
                        </View>
                        <View>
                            <label>分销渠道</label>
                            <label>/</label>
                            <label>50000</label>
                            <label>5000</label>
                        </View>
                        <View>
                            <label>推广提成</label>
                            <label>/</label>
                            <label>50000</label>
                            <label>5000</label>
                        </View>
                    </View>
                </View>

                <View className="table">
                    <View className="title">5月收益：¥5680</View>
                    <View className="cell">
                        <View>
                            <label></label>
                            <label>订单数</label>
                            <label>销售额</label>
                            <label>提成</label>
                        </View>
                        <View>
                            <label>团长收益</label>
                            <label>60</label>
                            <label>50000</label>
                            <label>5000</label>
                        </View>
                        <View>
                            <label>分销渠道</label>
                            <label>/</label>
                            <label>50000</label>
                            <label>5000</label>
                        </View>
                        <View>
                            <label>推广提成</label>
                            <label>/</label>
                            <label>50000</label>
                            <label>5000</label>
                        </View>
                    </View>
                </View>

                <View className="table">
                    <View className="title">6月收益：¥5680</View>
                    <View className="cell">
                        <View>
                            <label></label>
                            <label>订单数</label>
                            <label>销售额</label>
                            <label>提成</label>
                        </View>
                        <View>
                            <label>团长收益</label>
                            <label>60</label>
                            <label>50000</label>
                            <label>5000</label>
                        </View>
                        <View>
                            <label>分销渠道</label>
                            <label>/</label>
                            <label>50000</label>
                            <label>5000</label>
                        </View>
                        <View>
                            <label>推广提成</label>
                            <label>/</label>
                            <label>50000</label>
                            <label>5000</label>
                        </View>
                    </View>
                </View>
            </View>
        )
    }
}

export default ProfitRecord
